#导包
import  requests

# 请求行
url="http://127.0.0.1:8000/api/add_event/"
# 请求头(可以不写)
# header={
#     "Content-Type":"application/x-www-form-urlencoded"
# }
# 请求体
test_data={
    "eid":'68',
    "name":"iPhone19发布会",
    "limit":'200',
    "status":"0",
    "address":"汤臣一品",
    "start_time":"2022-10-23"
}

# 发送请求
# resp=requests.post(url=url,headers=header,data=test_data)
resp=requests.post(url=url,data=test_data)




print(resp.status_code)
# print(resp.text)
print(resp.json())





